import request from '@/utils/request'

export function getList(params) {
  return request({
    url: 'tms/InspectionLevel/getlist',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    url: 'tms/InspectionLevel/add',
    method: 'post',
    data
  })
}

export function get(id) {
  return request({
    url: 'tms/InspectionLevel/get?id=' + id,
    method: 'get'
  })
}

export function del(ids) {
  return request({
    url: 'tms/InspectionLevel/Delete',
    method: 'post',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'tms/InspectionLevel/update',
    method: 'post',
    data
  })
}

export default { add, edit, del, getList, get }
